
#ifndef RTCONFIGINITFILE_H
#define RTCONFIGINITFILE_H

#include "RtUtilTemplates.h"

class RT_API_EXPORT CRtConfigInitFile  
{
public:
	CRtConfigInitFile();
	~CRtConfigInitFile();

	RtResult InitWithFileName(const CRtString &aFileName);

	int GetIntParam(
		const CRtString &aGroup, 
		const CRtString &aKey,
		int aDefault = 0);

	DWORD GetDwordParam(
		const CRtString &aGroup, 
		const CRtString &aKey,
		DWORD aDefault = 0);

	WORD GetWordParam(
		const CRtString &aGroup, 
		const CRtString &aKey,
		WORD aDefault = 0);

	CRtString GetStringParam(
		const CRtString &aGroup, 
		const CRtString &aKey,
		CRtString aDefault = CRtString());

	BOOL GetBoolParam(
		const CRtString &aGroup, 
		const CRtString &aKey,
		BOOL aDefault = FALSE);

	//static CRtString GetWebexHomeDir();
	//static void SetWebexHomeEnv(const CRtString &aHome);
	
	friend class CRtSingletonT<CRtConfigInitFile>;
};

typedef CRtSingletonT<CRtConfigInitFile> CRtConfigInitFileSingleton;

#endif // !RTCONFIGINITFILE_H
